package cn.samler.shopapi.Service.impl;

import cn.samler.shopapi.Entity.Banner;
import cn.samler.shopapi.Mapper.BannerMapper;
import cn.samler.shopapi.Service.BannerService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BannerServiceImpl implements BannerService {
    private BannerMapper bannerMapper;

    BannerServiceImpl(BannerMapper bannerMapper) {
        this.bannerMapper = bannerMapper;
    }

    @Override
    public List<Banner> findAll() {
        return bannerMapper.findAll();
    }
}
